//
//  XKLRightTableViewCell.m
//  GuiZiShouDuanZi
//
//  Created by xmg on 16/4/26.
//  Copyright © 2016年 xiao_kl. All rights reserved.
//

#import "XKLRightTableViewCell.h"
#import "XKLRightItem.h"
#import <UIImageView+WebCache.h>
@interface XKLRightTableViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *myImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLable;
@property (weak, nonatomic) IBOutlet UILabel *followLable;

@end
@implementation XKLRightTableViewCell

- (void)awakeFromNib {
    
}

-(void)setItem:(XKLRightItem *)item{
    _item=item;
    
    [self.myImageView sd_setImageWithURL:[NSURL URLWithString:item.header] placeholderImage:[UIImage imageNamed:@"defaultUserIcon"]];
    self.nameLable.text=item.screen_name;
    
    self.followLable.text=[NSString stringWithFormat:@"%ld人关注",item.fans_count];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
}

@end
